#include"searcher.hpp"
#include<iostream>
#include<string>
#include<cstring>
#include<cstdio>

const std::string input = "ingestion/output/stored_data";

int main()
{
    //for test
    ns_searcher::Searcher* search = new ns_searcher::Searcher();
    search->InitSearcher(input);

    // std::string query; 
    // std::string json_string; 
    // char buffer[1024];
    // while (true)
    // {
    //     std::cout << "Please Enter your search query# ";
    //     fgets(buffer, sizeof(buffer)-1, stdin);
    //     buffer[strlen(buffer)-1] = 0; //xx\n
    //     query = buffer;
    //     std::cout << query << std::endl;
        
    //     search->Search(query, &json_string);
    //     std::cout << json_string << std::endl;
    // }
    

    return 0;
}